﻿using System.Web.Mvc;

namespace OrchardGlimpsePOC.Areas.Glimpse
{
    public class GlimpseAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Glimpse";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            // Because of the IgnoreRoute mapping for .axd files, users of Orchard will have to go to /Glimpse instead of /Glimpse.axd
            // although this might not be true in Orchard, but I'll have to ask Zoltan about that.

            context.MapRoute(
                "Glimpse_default",
                "Glimpse",
                new { controller = "Asset", action = "Index" }
            );
        }
    }
}
